This article mainly introduces PHP Session control: Session and Cookie Details. This article describes Session and Cookie related knowledge in PHP in detail and covers a wide range of topics, for more information about PHP session control, see the
Reprint: http://www.360doc.com/content/12/1125/17/820209_250155635.shtmlI. What is a cookie? As you know, the browser communicates with the Web server using the HTTP protocol, and when a user makes a page request, the Web server simply responds and
This article introduced the PHP session control, mainly elaborated the following several things:
• Background/concept of Session controlMaintenance and life cycle of • Cookies (effective time)Maintenance and life cycle of session (recovery
The difference between cookie mechanism and session mechanismIn particular, the cookie mechanism uses a scheme that maintains state on the client, while the session mechanism uses a scenario that maintains state on the server side.At the same time,
HTTP itself is a stateless communication protocol, the basic principle of session management, is to maintain the status of the response to the browser, there is a browser on the next request to send the status information,Let the Web Application
the difference between a cookie mechanism and a session mechanism
In particular, the cookie mechanism uses a scheme that maintains state on the client, while the session mechanism uses a scenario that maintains state on the server side.
We also
Notes for future study reference. Content comes from the Internet.
Basic concepts of COOKIE:
A cookie is generated by the server and sent to the User-Agent (usually a browser). The browser saves the key/value of the cookie to a text file in a
These are basic knowledge, but it is necessary to do a thorough understanding. Let's start with a brief introduction.
the definition of the two:
When you are browsing the Web, the Web server will send a small piece of information to your computer,
These are basic knowledge, but it is necessary to do a thorough understanding. Let's start with a brief introduction.
The definition of the two:
When you are browsing the Web, the Web server will send a small piece of information to your computer,
One. Several realization ways of distributed session
1. Database-based session sharing 2. Shared file system based on NFS3. Based on the memcached session, how to ensure the high availability of the memcached itself.4. Session replication mechanism
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.